package com.ecar.api.service.common.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ecar.api.service.common.DictionaryService;
import com.ecar.core.common.dao.DictionaryMapper;
import com.ecar.core.common.entity.Dictionary;

@Service
@Transactional
public class DictionaryServiceImpl implements DictionaryService {
	
	@Autowired
	DictionaryMapper dictionaryMapper;

	@Override
	public List<Dictionary> selctByParentNode(String parentNode) {
		return dictionaryMapper.selctByParentNode(parentNode);
	}

	@Override
	public List<Dictionary> selctByParentNodeAppVersions(String parentNode) {
		return dictionaryMapper.selctByParentNodeAppVersions(parentNode);
	}
	
	@Override
	public Dictionary selectByTheNode(String theNode) {
		return dictionaryMapper.selectByTheNode(theNode);
	}
}
